package thread.synchronize.dirtyread;

/**
 * @author cuihao
 * @date 2018/3/4
 */
public class MyThread extends Thread {
    private final PublicVar publicVar;

    public MyThread(PublicVar publicVar) {
        super();
        this.publicVar = publicVar;
    }

    @Override
    public void run() {
        super.run();
        publicVar.setValue("B", "BB");
    }
}
